Skip to content

[WIP] feat(sessions): Expose session tracking options - #1069

Open
limbonaut wants to merge 7 commits into
mainfrom
feat/session-tracking-opts
Open

limbonaut wants to merge 7 commits into
mainfrom
feat/session-tracking-opts

Conversation

@limbonaut

@limbonaut limbonaut commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

Expose auto_session_tracking and session_tracking_interval_ms in SentryOptions and Project Settings. Automatic session tracking defaults to enabled on all platforms; the background timeout defaults to 30 seconds and applies to Android and Cocoa. C# uses the inherited AutoSessionTracking and AutoSessionTrackingInterval properties to configure the same platform sessions, while suppressing duplicate .NET session creation. Includes class documentation and tests.

Session tracking needs to stay in the native layer because Godot can load managed code on demand, and games that never use C# may never initialize the .NET SDK. Letting .NET own sessions could underreport their duration (in case of late on-demand managed layer start) or miss entire runs (in case no C# is used in the project). C# configuration therefore controls the native sessions, with automatic .NET session creation disabled to avoid duplicates.

@limbonaut limbonaut changed the title feat: Expose session tracking options feat(sessions): Expose session tracking options Nov 6, 2026
@limbonaut
limbonaut force-pushed the feat/session-tracking-opts branch from 741bd7f to 442aeb8 Compare November 6, 2026 14:57
@limbonaut limbonaut changed the title feat(sessions): Expose session tracking options [WIP] feat(sessions): Expose session tracking options Nov 6, 2026
@limbonaut
limbonaut added this pull request to stack #1071 November 6, 2026 15:55
@limbonaut
limbonaut force-pushed the feat/session-tracking-opts branch from 47f4718 to 61d4b17 Compare November 6, 2026 16:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant